//
//  CBaseConst.swift
//  BaseComponent
//
//  Created by ryan on 2021/6/4.
//

import Foundation

let BASE_URL = "wht"

let CONFIGER = "upgrade"


public struct TXC {
    
     public enum Color: String {
        case red = "FF0000"
        case theme = "FFFFFF"
    }
    
    public enum FontSize: CGFloat {

        case font12 = 12
        case font14 = 14
        case font16 = 16
        case font18 = 18

    }
    
    
//    public static func color(type: Color) -> UIColor {
//        return UIColor.hex(hexString: type.rawValue)
//    }

    public static func pingFangRegular(size: FontSize) -> UIFont {
       return UIFont(name: "PingFangSC-Regular", size: size.rawValue)!
    }
    public static func pingFangMedium(size: FontSize) -> UIFont {
        return UIFont(name: "PingFangSC-Medium", size: size.rawValue)!
    }
    public static func pingFangSemibold(size: FontSize) -> UIFont {
        return UIFont(name: "PingFangSC-Semibold", size: size.rawValue)!
    }
    public static func sysFont(size: FontSize, weight: UIFont.Weight = .regular) -> UIFont {
        return UIFont.systemFont(ofSize: size.rawValue, weight: weight)
    }
}
